package com.cdy.common.property;

import lombok.Getter;

import java.util.concurrent.atomic.AtomicLong;

/**
 * 公共配置属性
 * Created by 陈东一
 * 2019/10/19 0019 15:31
 */
public class CommonProperty {
    // 分片最小为4M
    public static final long SmallSectionLength = 4 * 1024 * 1024;
    
    // 分段最小为100M
    public static final long BigSectionLength = 100 * 1024 * 1024;
    
    // 客户端 Id

    public static AtomicLong idAdder = new AtomicLong();

    @Getter
    public final String clientId = "client1" + idAdder.incrementAndGet();

    public String getProperty(String key) {
        return System.getProperty(key);
    }
    
}
